<div class="p-workflow-detail">
	<bread-crumb link-data="vm.breadCrumbArr"></bread-crumb>
	<div class="row">
		<div class="col-sm-12">
			<div class="panel panel-default">
				<div class="panel-heading" style="height: 52px;">
					<h3 class="panel-title" style="float: left;margin-top: 6px;">工作流</h3>
					<input id="pip_name" value="{{p_name}}" type="text" class="input col-md-pull-0" style="float: left;margin-left: 10px;" placeholder="输入工作流名称"  />
				</div>
				<div class="panel-body" style="clear: both;">
					<div class="row">
						<div class="col-sm-3">
							<div class="menuPanel">
								<uib-accordion close-others="true">
									<uib-accordion-group
											ng-repeat="menu in vm.menudata track by $index"
											class="panel-default" heading="{{menu.header}}" is-open="menu.isopen">
										<nodeDrag arr="menu.plugin"></nodeDrag>
									</uib-accordion-group>
								</uib-accordion>
							</div>
						</div>
						<div class="col-sm-9">
							<container></container>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="row">
		<div class="col-sm-12">
			<div class="panel panel-default">
				<div class="panel-heading">
					<h3 class="panel-title">编辑任务{{curPlugin_Name}}</h3>
				</div>
				<div class="panel-body">
					<div ng-repeat="form in formdata track by $index" ng-if="curNodeId == form.nodeid && form.property.length>0">
						<form name="myForm" class="form-horizontal" novalidate>
							<fieldset ng-repeat="property in form.property track by $index">
								<div ng-if='property.property_type=="input"'>
									<label>{{property.property_lable}}</label>
									<input type="text" placeholder="{{property.description}}" ng-model="property.property_value" class="form-control" required/>
								</div>
								<div ng-if='property.property_type=="password"'>
									<label>{{property.property_lable}}</label>
									<input type="password" placeholder="{{property.description}}" ng-model="property.property_value" class="form-control" required/>
								</div>
								<div ng-if="property.property_type=='number'">
									<label>{{property.property_lable}}</label>
									<input type="number" placeholder="{{property.description}}" ng-model="property.property_value" class="form-control" required/>
								</div>
								<div ng-if="property.property_type=='select'">
									<label>{{property.property_lable}}</label>
									<select style="width:200px;" ng-model="property.property_value">
										<option ng-repeat="sel in property.property_data track by $index" value="{{sel.value}}" >{{sel.text}}</option>
									</select>
								</div>
								<div ng-if="property.property_type=='search'">
									<label>{{property.property_lable}}</label>
									<select style="width:200px;" ng-model="property.property_value">
										<option ng-repeat="sel in property.property_data track by $index" value="{{sel.value}}">{{sel.text}}</option>
									</select>
								</div>
							</fieldset><!--
							<div style="border-top:1px solid #E1E9EE;width:100%; margin:20px 0;"></div>
							<button type="submit" class="btn btn-default-dark" >保存</button>
							<button type="submit" class="btn btn-default-light" >取消</button>-->
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>